package com.zoshine.zzg.service;

import com.zoshine.zzg.dao.OrderPrisonerDetailDao;
import com.zoshine.zzg.exception.AppException;
import com.zoshine.zzg.exception.ErrorMessage;
import com.zoshine.zzg.pojo.OrderPrisonerDetail;
import com.zoshine.zzg.util.idworker.IdWorker;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 
 * @author 田沛凌
 * @time 2017年6月23日 下午3:33:53
 */
@Service
@Transactional
public class OrderPrisonerDetailService extends BaseService<OrderPrisonerDetail> {
//	private IdWorker<Long> orderPrisonerIdWorker;
//	private  OrderPrisonerDetailDao  orderPrisonerDetailDao;
//	@Autowired
//	public void setOrderPrisonerDetailDao(OrderPrisonerDetailDao orderPrisonerDetailDao) {
//		this.orderPrisonerDetailDao = orderPrisonerDetailDao;
//	}
//	@Autowired
//	public void setOrderPrisonerIdWorker(IdWorker<Long> orderPrisonerIdWorker) {
//		this.orderPrisonerIdWorker = orderPrisonerIdWorker;
//	}
//	@Override
//	public void delOrderPrisonerDetailById(Long orderPrisonerDetailId) {
//		if(orderPrisonerDetailId == null){
//			throw new AppException(ErrorMessage.ORDER_PRISONER_DETAIL_ID_CAN_NOT_NULL);
//		}
//		orderPrisonerDetailDao.delete(orderPrisonerDetailId);
//	}
//
//	@Override
//	public void addOrderPrisonerDetail(OrderPrisonerDetail orderPrisonerDetail) {
//
//		orderPrisonerDetail.setGoodsId(orderPrisonerIdWorker.createId());
//
//	}
//
//	@Override
//	public OrderPrisonerDetail getOrderPrisonerDetailById(Long orderPrisonerDetailId) {
//		if(orderPrisonerDetailId == null){
//			throw new AppException(ErrorMessage.ORDER_PRISONER_DETAIL_ID_CAN_NOT_NULL);
//		}
//		return orderPrisonerDetailDao.selectOne(orderPrisonerDetailId);
//	}
//
//	@Override
//	public void editOrderPrisonerDetail(OrderPrisonerDetail orderPrisonerDetail) {
//		if(null == orderPrisonerDetail.getOrderPrisonerDetailId()){
//			throw new AppException(ErrorMessage.ORDER_PRISONER_DETAIL_ID_CAN_NOT_NULL);
//		}
//		orderPrisonerDetailDao.update(orderPrisonerDetail);
//	}

}
